package com.rany.day02;

import java.lang.reflect.Array;
import java.util.Arrays;

public class DemoArrayTest {
    public static void main(String[] args) {
        //定义随机字符串
        String line = "shuenyziwendos";
        //转换为字符数组
        char[] chars = line.toCharArray();

        //升序
        Arrays.sort(chars);

        for(int i = chars.length-1;i >=0; i--){
            System.out.print(chars[i]);
        }
    }
}
